package com.core.controller;

import com.core.dao.TmhDao;
import com.core.domain.User;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author tmh
 * @date 2024/4/26 22:25
 * @description
 */
@RestController
public class UserController {

    @Resource
    private TmhDao tmhDao;

    @GetMapping("/get")
    public String get(){
        for (User listUser : tmhDao.getListUsers()) {
            System.out.println(listUser);
        }
        return tmhDao.getListUsers().toString();
    }

}
